package org.Image.management.SpringDataService.CopyUtils;

import org.Image.management.SpringDataService.Service.StorageIo.Pojo.Mapper.FileStorage;
import org.Image.management.SpringDataService.Service.StorageIo.Pojo.Vo.UploadFileVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring")
public abstract class CopyFileUtils {

    @Mappings(
            {
                    @Mapping(target = "fileId", source = "uuid"),
                    @Mapping(target = "fileName", source = "name"),
                    @Mapping(target = "filePath", source = "path"),
                    @Mapping(target = "fileType", source = "type"),
                    @Mapping(target = "fileDescription", source = "description"),
            }
    )
    public abstract UploadFileVo FileStorageToUploadFileVo(FileStorage fileService);

}
